package com.cleaningcloud.cld.domain.vo;

import com.cleaningcloud.cld.domain.CldInvoice;
import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.security.handler.DictHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
public class CldInvoiceVo extends CldInvoice {

    // 项目区域
    @Excel(name = "项目区域", sort = 2, args = {"cld_project_region"}, handler = DictHandler.class)
    private String projectRegion;
    // 项目名称
    @Excel(name = "项目名称", sort = 3)
    private String projectName;
    // 项目合同状态
    private Long contractStatus;
    // 应开票金额
    private BigDecimal amountDue;
    // 实开票金额
    private BigDecimal actualAmount;
    // 未开票
    private int notIssued;
    // 已开票
    private int issued;
    // 已签收
    private int signedFor;
    // 发票类型
    @Excel(name = "发票类型", sort = 4, readConverterExp = "1=普通,2=专用")
    private Long invoiceType;
}
